home *** CD-ROM | disk | FTP | other *** search
/ Shareware Overload Trio 2 / Shareware Overload Trio Volume 2 (Chestnut CD-ROM).ISO / dir34 / katlog.zip / KATBOOK2.BAT < prev    next >
DOS Batch File  |  1994-07-02  |  3KB  |  98 lines

  1. echo off
  2. rem    DBS-KAT (C) COPYRIGHT 1986, R.H. MARTIN.  By APPLIED FORESIGHT, INC.
  3. if I == %1 goto domenu
  4. if exist %1.out del %1.out
  5. if not exist %1.oqt echo Missing file, %1, please fix & rerun...
  6. if not exist %1.oqt goto end
  7. :domenu
  8. echo :
  9. echo :       Please indicate the number corresponding to the letters of your
  10. echo :       hard disk drive and to the floppy drive with the DBS-KAT diskette
  11. echo :       in the drive.  If you don't have a hard disk drive, but you
  12. echo :       do have a high capacity floppy drive (1.2 MB space), you can use
  13. echo :       this drive as your hard disk instead.  The manuals & programs were
  14. echo :       decompressed to fit on the diskette.  If you're printing, the
  15. echo :       expanded manual will be placed on your hard disk & then printed 
  16. echo :       (afterwards, it will be deleted). If you're installing the 
  17. echo :       programs, they'll be left on your hard disk.
  18. echo :
  19. echo :       1.  Hard disk is D: and the floppy drive with DBS-KAT is A:.
  20. echo :       2.  Hard disk is C: and the floppy drive with DBS-KAT is A:.
  21. echo :       3.  Hard disk is A: and the floppy drive with DBS-KAT is B:.
  22. echo :       4.  None of the above.
  23. katask 2
  24. echo :
  25. if not errorlevel 1 goto bad_hit
  26. if errorlevel 4 goto bad_hit
  27. if I == %1 goto progs
  28. echo :   About to decompress DBS-KAT manual...
  29. if errorlevel 3 goto proc3
  30. if errorlevel 2 goto proc2
  31. if errorlevel 1 goto proc1
  32. :proc1
  33. d:
  34. a:usq a:%1.oqt
  35. a:
  36. echo :
  37. echo :   Printing the DBS-KAT manuals...
  38. type d:%1.out > prn
  39. del d:%1.out
  40. goto end
  41. :proc2
  42. c:
  43. a:usq a:%1.oqt
  44. a:
  45. echo :
  46. echo :   Printing the DBS-KAT manuals...
  47. type c:%1.out > prn
  48. del c:%1.out
  49. goto end
  50. :proc3
  51. a:
  52. b:usq b:%1.oqt
  53. b:
  54. echo :
  55. echo :   Printing the DBS-KAT manuals...
  56. type a:%1.out > prn
  57. del a:%1.out
  58. goto end
  59. :progs
  60. echo :   About to decompress & install DBS-KAT programs...
  61. if errorlevel 3 goto prog3
  62. if errorlevel 2 goto prog2
  63. if errorlevel 1 goto prog1
  64. :prog1
  65. d:
  66. a:usq a:kat.eqe
  67. a:usq a:katlook.eqe
  68. a:usq a:katscan.eqe
  69. a:usq a:kprint.eqe
  70. a:usq a:katorder.fqm
  71. a:usq a:katbug.fqm
  72. a:
  73. goto end
  74. :prog2
  75. c:
  76. a:usq a:kat.eqe
  77. a:usq a:katlook.eqe
  78. a:usq a:katscan.eqe
  79. a:usq a:kprint.eqe
  80. a:usq a:katorder.fqm
  81. a:usq a:katbug.fqm
  82. a:
  83. goto end
  84. :prog3
  85. a:
  86. b:usq a:kat.eqe
  87. b:usq a:katlook.eqe
  88. b:usq a:katscan.eqe
  89. b:usq a:kprint.eqe
  90. b:usq a:katorder.fqm
  91. b:usq a:katbug.fqm
  92. b:
  93. goto end
  94. :bad_hit
  95. echo You did not choose a correct number; rerun this procedure again
  96. :end
  97. 
  98.